package com.dnxh.service;

import com.dnxh.constant.CustomResult;
import com.dnxh.entity.BasicInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dnxh.entity.common.PageRequest;
import com.dnxh.entity.request.CreateBasicInfoRequest;
import com.dnxh.entity.request.SearchBasicInfoRequest;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhiqiu
 * @since 2022 -04-06
 */
public interface BasicInfoService extends IService<BasicInfo> {
	
	/**
	 * Create.
	 *
	 * @param request the request
	 */
	void create (CreateBasicInfoRequest request);
	
	/**
	 * Confirm custom result.
	 *
	 * @param id the id
	 * @return the custom result
	 */
	CustomResult confirm (Long id);
	
	/**
	 * Search info custom result.
	 *
	 * @param req the req
	 * @return the custom result
	 */
	CustomResult searchInfo (SearchBasicInfoRequest req);
	
	/**
	 * Search department custom result.
	 *
	 * @param req the req
	 * @return the custom result
	 */
	CustomResult searchDepartment (PageRequest req);
	
	/**
	 * search info by grades
	 *
	 * @param grades the grades
	 * @return the list
	 */
	List<BasicInfo> searchByGrade(List<String> grades);
	
	/**
	 * Search by department list.
	 *
	 * @param departments the departments
	 * @return the list
	 */
	List<BasicInfo> searchByDepartment(List<String> departments);
}
